package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Collect;
import com.stedu.mall.common.exception.SteduException;

public interface CollectService {
    //添加
    boolean insert(Collect collect) throws SteduException;
    //删除
    boolean delete(Integer id, Integer userId) throws SteduException;
    //根据goodsId和userId查询
    Collect selectByGoodsIDAndUserId(Integer userId, Integer goodsId);
    //分页查询
    PageInfo<Collect> selectByPage(Integer userId, Integer pageNum, Integer pageSize);
}
